<div class="page-content" >
<div class="panel panel-default">
        <div class="panel-heading">
            <strong>微信菜单</strong>
        </div>
	<div class="panel-body">
	<div id="toolbar" style="width: 100%;">
               <form id="filter" method="get" action="<{:addons_url('index')}>"  class="form-horizontal">
                    <div class="form-group">
                        <div class="col-sm-8">
                            <a href="<{:addons_url('wmenuCreate')}>" class="btn btn-default"><i class="fa fa-plus"></i> 生成微信菜单 </a>
							<a href="<{:addons_url('wmenuAdd')}>" class="btn btn-default"><i class="fa fa-plus"></i> 添加菜单 </a>
                        </div>
                         
                    </div>
                </form>
			   
			     
            </div>	
	<div class="bootstrap-table">
		<div class="fixed-table-container" style="padding-bottom: 0px;"> 
			<div class="fixed-table-body"> 
				<table id="data-table" class="table"><thead>
			<tr>
			 
			<th style="" data-field="id"><div class="th-inner sortable both desc">ID</div><div class="fht-cell"></div></th>
			<th style="" data-field="name"><div class="th-inner ">菜单名</div><div class="fht-cell"></div></th>
			<th style="" data-field="name"><div class="th-inner ">链接地址或事件Key</div><div class="fht-cell"></div></th><th style="" data-field="name"><div class="th-inner ">类型</div><div class="fht-cell"></div></th>
			<th style="" data-field="name"><div class="th-inner ">状态</div><div class="fht-cell"></div></th>
			<th style="" data-field="name"><div class="th-inner ">排序</div><div class="fht-cell"></div></th>
			<th style="" data-field="created_at"><div class="th-inner ">录入时间</div><div class="fht-cell"></div></th> 
			<th style="" data-field="id"><div class="th-inner ">操作</div><div class="fht-cell"></div></th>
			</tr></thead>
			<tbody>
			<volist name="data" id="vo">
			<tr data-index="0">
			<td style=""><{$vo.id}></td>
                        <td  align="" valign="middle"> <{$vo.showname}></td>
                        <td align="center" valign="middle"><p style="width:300px; padding:3px;word-break: break-all;  "><{$vo.url}></p></td>
						<td align="center" valign="middle" class="v_am_font"><{$vo.type}></td>
                        <td align="center" valign="middle"><{$vo['status']==1 ? '不显示' : '显示'}></td>
                        
                        <td  align="center" valign="middle"><input type="text" size="5"  key="id"  onblur="UpSort(this)"   model="system_wechat_menu" key_value="<{$vo.id}>" value="<{$vo.sort_order}>" /></td>
                        <td align="center" valign="middle"><{$vo.created|date='Y-m-d H:i', ###}></td>
			<td style="">
			
			 <a  href="<{:addons_url('wmenuAdd',array('id'=>$vo['id']))}>" class="btn btn-primary btn-xs">编辑</a>
                         
                                <a onclick="return confirm('确认需要删除些信息吗？');"  class="btn btn-primary btn-xs" href="<{:addons_url('wmenuDel',array('id'=>$vo['id']))}>" >删除</a>
	 
			</td>
			</tr>
			</volist>
			</tbody></table>
			 </div> 
			
		</div>
	    </div>	
	</div>	
 </div>
 </div>   
   
   